<?php
$objRevisorTO = $this->vars['objRevisorTO'];
$filas_pais = $this->vars['data_pais']['list_pais'];
$html = '';

if(!$filas_pais) {
    $html = '<tr><td colspan="2">No se encontraron registros</td></tr>';
}
else {

    $html = "<select id='pais' name='pais' class='required' name='pais' size='1'>";
    $html .= "<option value=''>(Select a Country)</option>";
    foreach($filas_pais as $fila) {
        $html .= "<option ";
        if(isset ($this->vars['data_revisor'])) {
            if($fila->getIdPais()==$this->vars['data_revisor']['pais']){
                $html .= "selected";
            }
        }
        if(isset ($objRevisorTO)) {
            if($fila->getIdPais()==$objRevisorTO->getIdPais()){
                $html .= "selected ";
            }
        }
        $html .= " value='".$fila->getIdPais()."'>".utf8_encode($fila->getNombre())."</option>";
    }

    $html .= "</select>";

}
echo($html);

?>
